<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="{:U('update')}" method="post">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 顾问名称 </label>
                                <div class="col-sm-9">
                                    <input type="hidden" name="id" value="{$member['id']}">
                                    <input type="text" name="name" class="rcol-xs-10 col-sm-5" value="{$member.name}">
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 头像 </label>
                                <div class="col-sm-9">
                                    <div class="col-xs-10 col-sm-2">{:UpImage("headurl",100,100,$member['headurl'])}</div>
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">仅支持jpg、gif、png、bmp、jpeg，且小于1MB。</span>
											</span>
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 贷款类型 </label>
                                <div class="col-sm-9">
                                    <select id="dk_type" name="dk_type" class="col-xs-10 col-sm-5">
                                        <foreach item="type" name="dk_type" key="k">
                                            <option value="{$k}" <if condition="$member['dk_type'] eq $k">selected="selected"</if> >{$type}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 贷款额度 </label>
                                <div class="col-sm-9">
                                    <select id="dk_edu" name="dk_edu" class="col-xs-10 col-sm-5">
                                        <foreach item="edu" name="dk_edu" key="k">
                                            <option value="{$k}" <if condition="$member['dk_edu'] eq $k">selected="selected"</if> >{$edu}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 月利率 </label>
                                <div class="col-sm-9">
                                    <select id="dk_month_lilv" name="dk_month_lilv" class="col-xs-10 col-sm-5">
                                        <foreach item="lilv" name="dk_month_lilv" key="k">
                                            <option value="{$k}" <if condition="$member['dk_month_lilv'] eq $k">selected="selected"</if> >{$lilv}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 二维码 </label>
                                <div class="col-sm-9">
                                    <div class="col-xs-10 col-sm-2">{:UpImage("qrcode",100,100,$member['qrcode'])}</div>
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">仅支持jpg、gif、png、bmp、jpeg，且小于1MB。</span>
											</span>
                                </div>

                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 业务描述 </label>
                                <div class="col-sm-9">
                                    <textarea class="col-xs-10 col-sm-5" name="dk_desc" cols="70" rows="3">{$member.dk_desc}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="select"> 选择地区 </label>
                                <div class="col-md-2">
                                    <select name="province_id" id="province_id" class="form-control select2" size="1">
                                        <option value="0">请选择省</option>
                                        <foreach name="provinces" item="vo" key="k" >
                                            <option value="{$vo['area_id']}" <if condition="$member['service_province'] eq $vo['area_id']">selected="selected"</if> >{$vo.area_name}</option>
                                        </foreach>
                                    </select>
                                </div>
                                <div class="col-md-2">
                                    <select name="city_id" id="city_id" class="form-control select2" size="1">
                                        <option value="0">请选择市</option>
                                        <foreach name="cities" item="vo1" key="k1" >
                                            <option value="{$vo1['area_id']}" <if condition="$member['service_city'] eq $vo1['area_id']">selected="selected"</if> >{$vo1.area_name}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 详细地址 </label>
                                <div class="col-sm-9">
                                    <input type="text" class="rcol-xs-10 col-sm-5" name="address" value="{$member.address}">
                                </div>
                            </div>

                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script src="__PUBLIC__/qwadmin/js/function.js"></script>
<script type="text/javascript">
    jQuery(function ($) {
        $('#birthday').datepicker({
            format: 'yyyy-mm-dd',
            weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
            language: 'cn'
        });
    });
</script>
</body>
</html>
